package dto;

public class PatientDTO {
	private int _id;
	private String _firstname;
	private String _surmame;
	private int _age;
	private boolean _gender;
	
	public PatientDTO() {
		this._id = 0;
		this._firstname = "";
		this._surmame = "";
		this._age = 0;
		this._gender = true;
	}
	
	public PatientDTO(PatientDTO patient) {
		this._id = patient._id;
		this._firstname = patient._firstname;
		this._surmame = patient._surmame;
		this._age = patient._age;
		this._gender = patient._gender;
	}
	
	public void update(PatientDTO patient) {
		this._firstname = patient._firstname;
		this._surmame = patient._surmame;
		this._age = patient._age;
		this._gender = patient._gender;
	}
	
	public PatientDTO(int id, String firstname, String surname, int age, boolean gender) {
		this._id = id;
		this._firstname = firstname;
		this._surmame = surname;
		this._age = age;
		this._gender = gender;
	}
	
	public void setID(int id) {
		this._id = id;
	}
	public void setFirstName(String firstname) {
		this._firstname = firstname;
	}
	public void setSurname(String surname) {
		this._surmame = surname;
	}
	public void setAge(int age) {
		this._age = age;
	}
	public void setGender(boolean gender) {
		this._gender = gender;
	}
	
	public int getID() {
		return this._id;
	}
	public String getFirstName() {
		return this._firstname;
	}
	public String getSurname() {
		return this._surmame;
	}
	public int getAge() {
		return this._age;
	}
	public boolean getGender() {
		return this._gender;
	}
}
